<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>

<script type="text/javascript">
	function validate() {
		if (form1.password.value != form1.cmfPassword.value) {
			alert("您输入密码和确认密码不一致");
			return;
		}
		form1.submit();
	}
</script>
<body>
	<center>
		<h2>注册新用户</h2>
		<form name="form1" action="/shiro/register">
			用户名:<input type="text" name="name"><br>
			<br> 密码:<input type="text" name="password"><br>
			<br> 确认密码:<input type="text" name="cmfPassword"><br>
			<br> <input type="button" onclick="validate()" value="注册">
		</form>
		
		<br>
	</center>

</body>
</html>